package net.hn.hnms.biz.emgcy.controller;

import io.swagger.annotations.Api;
import net.hn.hnms.biz.emgcy.domain.DutyRecordPo;
import net.hn.hnms.biz.emgcy.service.DutyRecordService;
import net.hn.hnms.sys.common.core.domain.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: baijiajun
 * @Date: 2022/9/14
 */
@Api(value = "事故记录模块", tags = {"事故记录"})
@RestController
@RequestMapping("dutyRecord")
public class DutyRecordController {
    @Resource
    private DutyRecordService dutyRecordService;
    @GetMapping("/list")
    public R list(DutyRecordPo dutyRecordPo){
        return R.ok(dutyRecordService.list(dutyRecordPo));
    }
}
